package com.atguigu.common.exception;

/**
 * @author fangy
 * @date 2022-10-20 17:39
 */
public class NostockException extends RuntimeException{

    private Long skuId;

    public NostockException(Long skuId){
        super("商品id:"+skuId+";没有足够的库存了");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
